import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import permission from './modules/permission'
import tagsView from './modules/tagsView'
import schedule from './modules/schedule'
import appClassify from './modules/appClassify'
import topbar from './modules/topbar'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    tagsView,
    schedule,
    appClassify,
    topbar,
  },
  getters
})

export default store
